package cn.com.server.entity;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * <p>
 * 用户角色绑定表
 * </p>
 *
 * @author qing
 * @since 2017-11-15
 */
@SuppressWarnings("serial")
public class UserRole implements Serializable {


   /**
     * 主键
     */
	private Long id;
   /**
     * 用户主键
     */
	private Long userId;
   /**
     * 角色主键
     */
	private Long roleId;
   /**
     * 状态,1正常
     */
	private Integer status;
   /**
     * 创建时间
     */
	private Date createTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}
	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",locale="zh",timezone = "GMT+8")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
}